﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Diagnostics;
using System.IO;

namespace MyWcfRestLib.Files
{
    abstract class FileOperator
    {
        public FileOperator(FileOpParams theParams)
        {
            Debug.Assert(theParams.IsValid);
            DeviceRootFullPath = Path.Combine(theParams.BasePath, theParams.DeviceRoot);
        }

        public string DeviceRootFullPath { get; private set; }

        abstract public bool CanPerform { get; }

        abstract public bool PerformOperation();
    }
}
